package com.mdinic.blogovi.front.common;

import java.util.Date;

import org.apache.wicket.datetime.PatternDateConverter;
import org.apache.wicket.datetime.markup.html.basic.DateLabel;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;

public class BDateTimeLabel extends DateLabel {

    private static final long serialVersionUID = 1L;

    private static final String FORMAT = "dd-MM-yyyy HH:mm:ss";

    public BDateTimeLabel(String id) {
        super(id, new PatternDateConverter(FORMAT, true));
    }

    public BDateTimeLabel(String id, IModel<Date> model) {
        super(id, model, new PatternDateConverter(FORMAT, true));
    }

    public BDateTimeLabel(String id, Date date) {
        super(id, new Model<Date>(date), new PatternDateConverter(FORMAT, true));
    }

}
